import requests
import json
# data = {"j_username": "admin", "j_password": "admin123", "from": "/", "Submit": "Sign in"}
#
# session = requests.Session()
# ret = session.post("http://10.37.253.238:8080/j_acegi_security_check",data=data)
#
# print(ret.text)
# print(ret.status_code)
# print(ret.cookies)
# for k,v in ret.cookies.items():
#     print(k+':'+v)
# ret = session.get("http://10.37.253.238:8080/")
# print(ret.text)

data2 = {
    "group": "qding",
    "env": "dev",
    "appname": "zzzz",
}
print("data2data2", data2)
ret = requests.post("http://10.37.253.241:8000/k8s/ingress/delete/", data2)
print("ret", ret.text)
print("ret", type(ret.text))
ret = json.loads(ret.text)